<template>
  <MenuNavigation />
  <!-- @wheel.stop="handleScroll" -->
  <div
    ref="exhibits16"
    class="jy-style-height Cultural-box"
    id="Cultural-box-id"
    :class="{
      scrollType1: type,
      scrollType2: !type,
    }"
    :style="{
      backgroundImage: `url(${publicUrls + 'free/style12/publicstyle12Bg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="cultural-bg" @wheel.stop="handleScroll">
      <div class="Cultural-heard" :class="type ? 'heard1' : 'heard2'">
        <div class="backHome" @click="blankHome">
          <i class="freeIcon">&#xe642;</i>
        </div>

        <div
          class="heard-title"
          :style="{
            backgroundImage: `url(${
              publicUrls + 'free/style12/publicstyle12titleBg.png' + '?imageView2/3/format/webp'
            })`,
          }"
        >
          展品图库
        </div>
        <div class="percentage-text" id="percentage-text">
          <!-- <span v-if="list.length > 4">{{ percentage }}%</span> -->
          <div class="screen" v-if="!store.isMobileType">
            <div class="seach-Icon-dot" v-if="isMassage"></div>
            <i class="doorIcon" @click="visible = true">&#xe666;</i>
          </div>
          <t-popup
            :content="type ? '横排布局' : '宫格布局'"
            v-if="!store.isMobileType"
            placement="bottom"
            showArrow
            attach="#percentage-text"
          >
            <i class="freeIcon freeIcon-mg" style="margin-left: 24px" v-if="type" @click="type = false">&#xe65a;</i>
            <i class="freeIcon freeIcon-mg" style="margin-left: 24px" v-else @click="type = true">&#xe64d;</i>
          </t-popup>
        </div>
      </div>

      <component
        :tabbmScroll="getTabmComputed"
        :is="components"
        color="rgba(50, 43, 37, 1)"
        v-if="type ? viewportwidth : viewportheight"
        :byid="type ? 9237 : 9527"
        :width="type ? getScrollWidth : getScrollHeight"
        :height="type ? getScrollWidth : getScrollHeight"
      >
        <!-- 内容 -->
        <template #[dynamicSlotName]>
          <div class="right-scroll" :class="{ 'right-type': !type, 'right-scroll-min': list.length <= 4 && type }">
            <div class="is-null" v-if="list.length === 0 && !loading">
              <span>暂无展品</span>
            </div>
            <div
              class="item-parent"
              :class="type ? 'item-parent-nowrap' : 'item-parent-wrap'"
              :style="{ 'margin-right': !type && (index + 1) % 4 === 0 ? '0px' : '' }"
              v-else
              v-for="(item, index) in list"
              :key="item.id"
            >
              <div class="scroll-item" @click="pathInfo(item.moduleId, item.id)">
                <div
                  class="cover-img"
                  :style="{
                    'background-image': `url(${
                      publicUrls + 'free/style12/CulturalItemBg.png' + '?imageView2/3/format/webp'
                    })`,
                  }"
                >
                  <div class="cover-hd">
                    <img :src="$filters.getLinkUrl(item.coverUrl, '?imageView2/3/w/420/h/520/format/webp')" alt="" />
                  </div>
                </div>
                <div class="cover-name">{{ item.name }}</div>
              </div>
            </div>
          </div>
        </template>
        <!-- 滚动条 -->
        <template #[dynamicSlotChild]>
          <div class="solidBorder-child1" :class="!type && 'solidBorder-child2'"></div>
        </template>
      </component>
      <a :href="doorUrl" target="blank" class="logo-box">
        <img :src="publicUrls + 'free/style12/publicstyle12btmBg.png' + '?imageView2/3/format/webp'" alt="" />
      </a>
    </div>
    <t-drawer
      @close="init(2)"
      placement="right"
      :attach="exhibits16"
      v-model:visible="visible"
      show-in-attached-element
    >
      <div class="seach-box" id="seach-box-style4-id">
        <p class="seach-box-title">
          <span class="seach-box-title-1">筛选和搜索</span>
        </p>
        <div class="seach-items">
          <div class="input-box-left">
            <t-input @enter="seachValue" v-model="parmas.value" placeholder="输入展品名称查找" style="width: 100%">
            </t-input>
          </div>
          <div @click="seachValue" class="button-style">搜索</div>
        </div>
        <div class="seach-item seach-item-1">
          <span>单元</span>
          <t-select
            @change="moduleListChange"
            v-model="parmas.ModuleId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.moduleList" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>类型</span>
          <t-select
            @change="select3Change"
            v-model="parmas.typeId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.select3" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>年代</span>
          <t-cascader
            v-if="clseaSelcet"
            @change="ageIdChange"
            placeholder=""
            v-model="parmas.ageId"
            :options="datas.select4"
            :popupProps="{
              attach: `#Cultural-box-id`,
            }"
            valueType="full"
            :keys="{
              value: 'id',
              children: 'children',
              label: 'text',
            }"
          />
        </div>
        <div class="seach-item">
          <span>单位</span>
          <t-select
            @change="companyChange"
            v-model="parmas.CompanyId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.company" :key="item.id" :label="item.name" :value="item.id" />
          </t-select>
        </div>
        <div class="seach-item">
          <span>级别</span>
          <t-select
            @change="select1Change"
            v-model="parmas.levelId"
            placeholder=""
            :popupProps="{
              attach: `#seach-box-style4-id`,
            }"
          >
            <t-option v-for="item in datas.select1" :key="item.id" :label="item.text" :value="item.id" />
          </t-select>
        </div>
        <div class="btn-box">
          <div @click="clear" class="btn-box-item1">
            <span>清空</span>
          </div>
          <div @click="seachInit" class="btn-box-item2">
            <span>筛选</span>
          </div>
        </div>
      </div>
    </t-drawer>
  </div>
</template>

<script lang="ts">
// @ts-nocheck
export default defineComponent({
  name: 'freeStyle4',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import { doorUrl } from '@/utils/minxin';
import { publicUrls, filterHTML } from '@/utils/minxin';
import { useRouter, useRoute } from 'vue-router';
import { ref, watch, reactive, nextTick, computed, onActivated, defineComponent, onDeactivated } from 'vue';
import { exhibitionData } from '@/api/templates/templates';
import { companysData, modulesData } from '@/api/templates/templates';
import { useProjectStore, commonDataStore } from '@/store';
import { storeToRefs } from 'pinia';
// import ScrollBoxCom from '../scrollBox.vue';
import ScrollBoxCom2 from '../../message/scrollBox10.vue';
// import ScrollBoxCom from '../scrollBoxUp.vue';
import ScrollBoxCom from '../../Cultural/scrollBox10.vue';
import { treeList } from '@/api/user/user';
import { exhibitShowpiece } from '@/api/templates/templates';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const clseaSelcet = ref(true);
const topShow = ref(false);
const scrollNumber = ref(0);
const heartbeat = ref(0); //页面心跳值
const Scrollwidth = ref();
const scrollheight = ref();
const exhibits16 = ref(null); //父元素挂在ref
const visible = ref(false);
const scrollBox = ref(null);
const percentage = ref(0);
const list = ref([]);
const cascader = ref(true);
const type = ref(true);
const total = ref(0);
const loading = ref(false);
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const datas = reactive({
  select1: [{ id: -1, text: '全部' }], //级别
  select2: [{ id: 0, text: '全部' }], //来源
  select3: [{ id: -1, text: '全部' }], //类型
  select4: [{ id: 0, text: '全部' }], //年代
  company: [], //单位
  moduleList: [], //单元
});
const parmasList = ref({
  typeId: '',
  ageId: '',
  levelId: '',
  ModuleId: '',
  CompanyId: '',
});
const isMobile = navigator.userAgent.match(
  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
const info = ref({});
const previewId = ref(0); //当前选中查看展品id
const InfomoduleId = ref(0);
const selectModuleId = ref(1);
const selecttypeId = ref(-1);
const selectCompanyId = ref(-1);
const parmas = reactive({
  value: '',
  typeId: -1,
  ageId: [0],
  levelId: -1,
  ModuleId: 1,
  CompanyId: -1,
  pageNo: 1,
  pageSize: 2000,
});

let viewportwidth = window.innerWidth;
Scrollwidth.value = (viewportwidth / 900) * 900;

let viewportheight = window.innerHeight;
scrollheight.value = (viewportheight / 900) * 640;

const getScrollWidth = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 900;
  return heights;
});

const getScrollHeight = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 519;
  return heights;
});
const getTabmComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = !type.value ? (fontSizeNumber / 144) * 98 : (fontSizeNumber / 144) * 180;
  return heights;
});

const isMassage = computed(() => {
  return (
    parmas.value != '' ||
    (parmas.typeId != null && parmas.typeId != -1) ||
    parmas.ageId[0] !== 0 ||
    (parmas.levelId != null && parmas.levelId != -1) ||
    parmas.ModuleId != 1 ||
    parmas.CompanyId != -1
  );
});

const components = computed(() => {
  if (type.value) return ScrollBoxCom;
  else return ScrollBoxCom2;
});

const dynamicSlotName = computed(() => {
  if (type.value) return 'solidBorderExcon';
  else return 'solidBorderCon';
});

const dynamicSlotChild = computed(() => {
  if (type.value) return 'solidBorderExbar';
  else return 'solidBorderEx';
});

const initDetail = async () => {
  try {
    let { data } = await exhibitShowpiece(InfomoduleId.value, previewId.value);
    info.value = data;
    console.log(info.value);
  } catch {}
};
const init = async (type?: number) => {
  try {
    if (loading.value) {
      return;
    }
    loading.value = true;
    // console.log(parmas);
    // let arr = parmas;
    // arr.ageId = arr.ageId[arr.ageId.length - 1];
    let { data } = await exhibitionData(localStorage.getItem('projectId'), {
      value: parmas.value,
      typeId: parmas.typeId,
      ageId: parmas.ageId[parmas.ageId.length - 1],
      levelId: parmas.levelId,
      ModuleId: parmas.ModuleId,
      CompanyId: parmas.CompanyId,
      pageNo: parmas.pageNo,
      pageSize: parmas.pageSize,
    });
    total.value = data.total;

    if (type) {
      list.value = data.data;
    } else {
      list.value = list.value.concat(data.data);
    }
    // console.log(list.value);
    scrollBox.value.scrollLeft = 0;
    topShow.value = false;
    // list.value = [];
    loading.value = false;
  } catch {
    loading.value = false;
  }
};
const closeType = (type: number) => {
  switch (type) {
    case 1:
      parmasList.value.typeId = '';
      parmas.typeId = -1;
      break;
    case 2:
      parmasList.value.ageId = '';
      parmas.ageId = [0];
      break;
    case 3:
      parmasList.value.levelId = '';
      parmas.levelId = -1;
      break;
    case 4:
      parmasList.value.ModuleId = '';
      parmas.ModuleId = 1;
      break;
    default:
      parmasList.value.CompanyId = '';
      parmas.CompanyId = -1;
      break;
  }
  init(2);
};
const emitTop = () => {
  //点击回到列表最左侧
  scrollBox.value.scrollLeft = 0;
  percentage.value = 0;
  topShow.value = false;
};
const preview = (id: number, moduleId: number) => {
  previewId.value = id;
  InfomoduleId.value = moduleId;
  initDetail();
};
const initSelect = async () => {
  //初始化所有下拉选项

  let res2 = await treeList(371999507447877); //类型
  let res3 = await treeList(372051821408325); //年代

  // datas.select2 = res1.data;
  datas.select3 = datas.select3.concat(res2.data);
  datas.select4 = datas.select4.concat(res3.data);
};
const initInfo = async () => {
  let { data } = await companysData(localStorage.getItem('projectId'));
  let DataList = await modulesData(localStorage.getItem('projectId'));
  let res = await treeList(371994471206981); //级别
  datas.select1 = datas.select1.concat(res.data);
  datas.moduleList = datas.moduleList.concat(DataList.data);
  datas.company = datas.company.concat(data);
};

initInfo();
initSelect();
const seachValue = () => {
  parmas.pageNo = 1;
  visible.value = false;
  init(2);
};
const seachInit = () => {
  visible.value = false;
  //   if (selectModuleId.value) {
  //     parmas.ModuleId = selectModuleId.value;
  //   }
  //   if (selecttypeId.value != -1) {
  //     parmas.typeId = selecttypeId.value;
  //   }
  //   if (selectCompanyId.value != -2) {
  //     parmas.CompanyId = selectCompanyId.value;
  //   }
  parmas.pageNo = 1;
  init(1);
};
const moduleListChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.ModuleId = context.option.label;
};
const select3Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.typeId = context.option.label;
};
const companyChange = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.CompanyId = context.option.label;
};
const select1Change = (e, context) => {
  // console.log(context.option.label)
  parmasList.value.levelId = context.option.label;
};
// 年代
const ageIdChange = (e, context) => {
  //   console.log(context.node.labelnia)
  parmasList.value.ageId = context.node.label;
  //   parmasList.value.levelId = context.option.label;
};

const clear = () => {
  parmas.value = '';
  parmas.typeId = -1;
  parmas.ageId = [0];
  parmas.levelId = -1;
  parmas.ModuleId = 1;
  parmas.CompanyId = -1;
  selectModuleId.value = 1;
  selecttypeId.value = -1;
  selectCompanyId.value = -1;
  visible.value = false;
  parmasList.value.typeId = '';
  parmasList.value.ageId = '';
  parmasList.value.levelId = '';
  parmasList.value.ModuleId = '';
  parmasList.value.CompanyId = '';
  clseaSelcet.value = false;
  nextTick(() => {
    clseaSelcet.value = true;
  });
  init(2);
};
const pathInfo = (moduleId: number, e?: number) => {
  //查看展品详情
  store.exhibitsModuleId = moduleId;
  store.exhibitsShowpieceid = e;
  store.exhibitsInfoShow = true;

  //   router.push({
  //     name: route.meta.loopType ? pathLoop[2] : path[2],
  //     query: {
  //       showpieceid: e,
  //       moduleId: moduleId,
  //     },
  //   });
};
const blankRoute = () => {
  router.replace({ name: route.meta.loopType ? pathLoop[0] : path[0] }); // 替换为你要跳转的新路由路径
};
const handleScroll = (event) => {
  event.preventDefault(); // 阻止默认滚动行为
  const { deltaY } = event;

  // 获取滚动内容的 DOM 元素
  const contentEl = scrollBox.value;

  // 将滚动盒子向前滚动
  contentEl.scrollLeft += deltaY;
  scrollNumber.value = contentEl.scrollLeft;
  if (contentEl.scrollWidth > contentEl.clientWidth) {
    if (
      contentEl.scrollWidth < contentEl.scrollLeft + contentEl.clientWidth + 100 &&
      !loading.value &&
      list.value.length < total.value
    ) {
      parmas.pageNo = parmas.pageNo + 1;
      init();
    }
    nextTick(() => {
      const { scrollLeft, clientWidth, scrollWidth } = scrollBox.value;
      if (scrollLeft > 100) {
        topShow.value = true;
      }
      if (scrollLeft < 100) {
        topShow.value = false;
      }
      const newScrollPercentage = Math.floor((scrollLeft / (scrollWidth - clientWidth)) * 100);
      percentage.value = newScrollPercentage;
    });
  }
};
init();
onActivated(() => {
  // heartbeat.value
  if (heartbeat.value !== store.heartbeatCurrent) {
    scrollBox.value.scrollLeft = 0;
    scrollNumber.value = 0;

    clear();
  } else {
    nextTick(() => {
      if (scrollNumber.value) {
        scrollBox.value.scrollLeft = scrollNumber.value;
      }
    });
  }
  heartbeat.value = store.heartbeatCurrent;
});
onDeactivated(() => {
  clear();
});
const blankHome = () => {
  clear();
  //   store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
// import { publicUrls } from '@/utils/minxin';
// import { commonDataStore } from '@/store';
// const commonStore = commonDataStore();
// import { useRouter, useRoute } from 'vue-router';
// const router = useRouter();
// const route = useRoute();
// const blankHome=()=>{
//     router.push({name:route.meta.loopType?'exhibitionHome' : 'templateedit'})
// }
</script>
 
<style scoped lang="less">
.Cultural-box {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  // padding: 64px 0px;
  padding-top: 118px;

  :deep(.t-drawer__content-wrapper) {
    z-index: 666;
    width: 470px !important;
  }
  :deep(.t-drawer__footer) {
    display: none;
  }
  :deep(.t-drawer__body) {
    padding: 0px;
    background: rgba(255, 238, 200, 1);
  }
}
.freeIcon {
  cursor: pointer;
}

.cultural-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  //   align-items: center;
  overflow: hidden;
  //   padding: 115px 80px;
}
.heard1 {
  margin-bottom: 60px;
}
.heard2 {
  margin-bottom: 60px;
}
.Cultural-heard {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  height: 68px;
  .backHome {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    margin-left: 0 !important;
    .freeIcon {
      font-size: 34px;
      line-height: 34px;
      color: rgba(254, 214, 129, 1);
    }
  }
  .heard-title {
    position: absolute;
    top: 0;
    left: calc(50% - 162.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 325px;
    height: 68px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-family: Alimama DongFangDaKai;
    font-size: 36px;
    font-weight: 400;
    line-height: 56px;
    color: rgba(254, 214, 129, 1);
  }
  .percentage-text {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: SourceHanSerifCN-Bold;
    font-size: 32px;
    text-align: center;
    color: rgba(254, 214, 129, 1);
    .screen {
      position: relative;
      height: 32px;
      display: flex;
      justify-content: start;
      align-items: start;
      .seach-Icon-dot {
        position: absolute;
        top: -1px;
        right: -1px;
        width: 3px;
        height: 3px;
        background: rgba(254, 214, 129, 1);
        border-radius: 50%;
      }

      i {
        font-size: 32px;
        line-height: 32px;
      }
    }
    .doorIcon {
      cursor: pointer;
      font-style: 32px;
      line-height: 32px;
      color: rgba(254, 214, 129, 1);
    }
    .freeIcon {
      cursor: pointer;
      font-style: 32px;
      line-height: 32px;
      color: rgba(254, 214, 129, 1);
    }
    :deep(.t-popup) {
      color: rgba(241, 63, 51, 1);
    }
    :deep(.t-popup__content) {
      border-radius: 4px;
      background: rgba(254, 214, 129, 1);
      box-shadow: none;
    }
    :deep(.t-popup__arrow) {
      box-shadow: none;
    }
    :deep(.t-popup__arrow::before) {
      background: rgba(254, 214, 129, 1);
      box-shadow: none;
      margin-left: calc(-8px / 3);
    }
    :deep(.t-popup[data-popper-placement^='bottom'] .t-popup__content--arrow) {
      margin-top: 8px;
    }
  }
}
.right-type {
  display: flex !important;
  flex-wrap: wrap;
  //   grid-template-columns: repeat(4, 1fr);
  //   grid-gap: 30px 20px;
  //   justify-items: stretch;
  // padding-left: 90px !important;
  padding-right: 0px !important;
}

.wap-right-type {
  display: flex !important;
  flex-wrap: wrap;
  padding-right: 0px !important;
  height: 428px !important;
}
.right-scroll {
  display: flex;
  height: auto;
}
.right-scroll-min {
  margin: 0 auto;
}
.right-scroll::-webkit-scrollbar {
  display: none;
}

.list-item {
  display: flex;
  align-items: center;
  margin-right: 32px;
  margin-bottom: 30px;
  span {
    font-family: PingFang SC;
    font-size: 18px;
    line-height: 28px;
    color: rgba(85, 59, 42, 1);
  }
  .doorIcon {
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
    color: rgba(85, 59, 42, 1);
  }
}
.seach-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 110px 54px;
  background: rgba(255, 238, 200, 1);
}
.seach-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 32px;
  .seach-box-title-1 {
    // cursor: pointer;
    font-size: 22px;
    line-height: 35px;
    text-align: left;
    font-family: PingFang SC;
    color: rgba(154, 29, 36, 1);
  }
}
.seach-items {
  position: relative;
  display: flex;
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(216, 74, 63, 1);
}
.input-box-left {
  width: 100%;
  height: 40px;
  :deep(.t-input__wrap) {
    width: 100%;
    height: 40px;
  }
  :deep(.t-input) {
    padding-right: 60px;
    padding-left: 16px;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none !important;

    .t-input__inner {
      font-size: 16px;
      color: rgba(216, 74, 63, 0.8);
    }
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input:hover) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input--focused) {
    box-shadow: none;
    border-color: transparent;
  }
  :deep(.t-input__inner::placeholder) {
    font-family: PingFangSC, PingFang SC;
    font-size: 16px;
    color: rgba(216, 74, 63, 0.8);
    opacity: 0.5;
    // opacity: 0.4;
  }
}
.button-style {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 40px;
  cursor: pointer;
  z-index: 6;
  position: absolute;
  top: 0;
  right: 28px;
  font-family: PingFang SC;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(154, 29, 36, 1);
}

.btn-box {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 180px;
  .btn-box-item1 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 160px;
    height: 48px;
    border: 1px solid rgba(216, 74, 63, 1);
    border-radius: 2px;
    span {
      font-family: PingFang SC;
      font-size: 16px;
      line-height: 24px;
      color: rgba(216, 74, 63, 1);
    }
  }
  .btn-box-item2 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
    height: 48px;
    border-radius: 4px;
    margin-left: 14px;
    background: rgba(216, 74, 63, 1);
    span {
      font-family: PingFang SC;
      font-size: 16px;
      line-height: 24px;
      color: rgba(255, 238, 200, 1);
    }
  }
}
.seach-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  margin-top: 40px;
  cursor: pointer;
  span {
    position: absolute;
    left: 0;
    top: 50%;
    height: 28px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 20%;
    font-size: 18px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: rgba(216, 74, 63, 1);
    line-height: 28px;
  }
  width: 100%;
  // padding: 20px 0;
  :deep(.t-select__right-icon) {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  :deep(.t-input--focused) {
    box-shadow: none !important;
  }
  // :deep(.t-select__wrap){
  //   height: 32px;
  // }
  // :deep(.t-select-input){
  //   height: 32px;
  // }
  :deep(.t-cascader__icon) {
    width: 20px;
    height: 20px;
  }
  :deep(.t-input:hover) {
    border-color: transparent !important;
  }
  :deep(.t-input__inner) {
    // padding-left: 20%;
    margin-top: 52px;
    font-size: 18px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: rgba(216, 74, 63, 0.4);
    line-height: 28px;
  }

  :deep(.t-select__wrap) {
    background: transparent;
  }
  :deep(.t-select-input) {
    background: transparent;
    height: 28px;
    .t-input {
      background: transparent;
      border: none;
    }
  }
  :deep(.t-input__inner) {
    height: 32px;
  }
  :deep(input::placeholder) {
    color: rgba(216, 74, 63, 1);
    opacity: 0.5;
  }
  :deep(.t-input:hover) {
    border-color: transparent;
  }
  :deep(.t-input) {
    height: 28px;
    overflow: initial;
    padding-left: 0;
  }
  :deep(.t-select) {
    .t-input {
      background: transparent;
      border: none;
    }
    .t-input.t-input--suffix > .t-input__suffix {
      font-size: 20px;
      color: rgba(50, 43, 37, 1);
    }
  }
}
.seach-item-1 {
  margin-top: 44px;
}
.is-null {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  span {
    font-size: 20px;
    line-height: 32px;
    color: rgba(254, 214, 129, 1);
    opacity: 0.5;
  }
}
.solidBorder-child1 {
  width: 100%;
  height: 4px;
  background: rgba(254, 214, 129, 0.3);
  border-radius: 25px;
}
.solidBorder-child2 {
  width: 4px;
  height: 100%;
  background: rgba(254, 214, 129, 0.3);
  border-radius: 25px;
}
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  .iconfonts {
    font-size: 26px;
    color: rgba(216, 74, 63, 1);
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: rgba(216, 74, 63, 1);
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
// ::v-deep .t-select__dropdown.t-popup{
// background: #BBD0CE;
// box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
// padding: 10px !important;
// }
:deep(.t-select .t-fake-arrow) {
  color: rgba(216, 74, 63, 1);
}
:deep(.t-cascader .t-fake-arrow) {
  color: rgba(216, 74, 63, 1);
}
::v-deep .tumb1 {
  display: flex;
  justify-content: center;
  align-items: center;
  top: -4px;
  .scrollBar {
    height: 5px;
    background: rgba(156, 180, 158, 1);
    border-radius: 4px;
    box-shadow: none;
  }
}
::v-deep .tumb2 {
  display: flex;
  justify-content: center;
  align-items: center;
  .scrollBar {
    width: 5px;
    background: rgba(156, 180, 158, 1);
    border-radius: 4px;
    box-shadow: none;
  }
}
::v-deep .unit-exbi-remarks-info-remarks {
  width: 100%;
}
#seach-box-style4-id {
  ::v-deep .t-select-option span {
    color: rgba(216, 74, 63, 1);
  }
  ::v-deep .t-select-option.t-is-selected {
    background: transparent;
    span {
      color: rgba(154, 29, 36, 0.8);
    }
  }
  ::v-deep .t-popup__content {
    border-radius: 4px;
    background: rgba(255, 250, 238, 1);
  }
  :deep(.t-select-option:hover) {
    background: rgba(246, 89, 77, 0.065);
  }
}
#Cultural-box-id {
  ::v-deep .t-cascader__menu {
    background: rgba(255, 250, 238, 1);
  }
  ::v-deep .t-cascader__item {
    color: rgba(216, 74, 63, 1);
  }
  ::v-deep .t-cascader__item.t-is-selected {
    color: rgba(154, 29, 36, 0.8) !important;
  }
  ::v-deep .t-cascader__item.t-is-expanded {
    background: rgba(246, 89, 77, 0.065);
    color: rgba(216, 74, 63, 1) !important;
    .t-icon-chevron-right {
      color: rgba(216, 74, 63, 1) !important;
    }
  }
  :deep(.t-cascader__item:hover:not(.t-is-expanded):not(.t-is-disabled)) {
    background: rgba(236, 235, 231, 1);
  }
}

.item-parent-wrap {
  // width: calc(25% - 20px);
  width: 300px;
  height: 347px;
  overflow: hidden;
  margin-right: 12px;
  margin-bottom: 20px;
}
.item-parent-nowrap {
  //横向模式
  width: 300px;
  height: 347px;
  margin-right: 20px;
}
.item-parent {
  //   margin-right: 20px;
  &:last-child {
    margin-right: 0;
  }
}
.scroll-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}
.cover-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 38px 4px;
  padding-right: 10px;
  .cover-hd {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 292px;
    height: 292px;
    overflow: hidden;
  }
  img {
    width: 292px;
    height: 292px;
    object-fit: contain;
    transition: all 0.5s ease;
  }
  img:hover {
    transform: scale(1.2);
  }
}
.cover-name {
  margin-top: 20px;
  height: 27px;
  width: 100%;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(254, 214, 129, 1);
  font-family: 'PingFang SC';
  font-size: 18px;
  line-height: 27px;
  text-align: center;
}
.scrollType1 {
  :deep(.right-scroll) {
    padding-left: 80px;
  }
  :deep(.unit-exbi-remarks-info-remarks) {
    min-height: 368px;
    padding-top: 0 !important;
    padding-right: 80px;
  }
  :deep(.solid-box-parent) {
    margin-top: 48px;
    // right: 60px;
  }
  .right-scroll::-webkit-scrollbar {
    display: none;
  }
  :deep(.templatestyle1-scroll-box-tumb) {
    display: flex;
    align-items: center;
    top: -4px;
    .scrollBar {
      background: rgba(254, 214, 129, 1);

      border-radius: 25px;
      box-shadow: none;
    }
  }
}

.scrollType2 {
  :deep(.unit-exbit-null-remarks-info) {
    width: 1256px; //calc(100% - 160px); //1200px
    // margin-left: 80px;
    margin: 0 auto;
  }
  .solidBorder-child {
    width: 4px;
    height: 100%;
    background: rgba(254, 214, 129, 0.3);
    border-radius: 25px;
  }
  :deep(.solid-box-parent) {
    position: absolute;
    right: -0px;
  }
  :deep(.unit-exbi-remarks-info-remarks) {
    width: calc(100% - 20px);
  }

  ::v-deep .templatestyle1-scroll-box-tumb {
    display: flex;
    justify-content: center;
    top: -4px;
    .scrollBar {
      width: 4px;
      // height: 100%;
      height: 98px;
      background: rgba(254, 214, 129, 1);

      border-radius: 25px;
      box-shadow: none;
    }
  }
  :deep(.solid-box-parent) {
    display: flex;
    justify-content: flex-end;
  }
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: absolute;
  bottom: 0px;
  left: 0px;
  img {
    width: 100%;
    height: auto;
  }
}
</style>